#coding:utf-8
#! ‪C:\Developer\python36\python3.exe
import time

def savePage(driver):
    #将完整加载好的html页面保存到本地
    htmlFile = open('html.txt', 'w', encoding='utf-8')
    html = driver.page_source
    time.sleep(3)
    htmlFile.write(html)
    htmlFile.close()
    time.sleep(2)


